home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 123_01 / tod.bds < prev    next >
Encoding:
Text File  |  1985-03-09  |  512 b   |  25 lines

  1. /*
  2. ** display date and time
  3. ** using the new date/ssi
  4. ** which requires the Godbout
  5. ** System Support I board
  6. **
  7. ** May 1, 1982
  8. */
  9.  
  10. #include "tools.h"
  11.  
  12. main()
  13. {
  14.     char *now,date[9],time[9];
  15.  
  16.     now=getnow();    /* get date and time */
  17.     fmtdat(date,time,now,0); /* split it into two parts */
  18.     puts("The time is: ");
  19.     puts(time);
  20.     puts("\n");
  21.     puts("Today's date is: ");
  22.     puts(date);
  23.     puts("\n");
  24. }
  25. ≈û·┬∙½° ├¢≈Æ┬∙├¢≈∙ ╚∙▓╔╛∙!╚°╔╞≈∙ ╚∙▓╔╛∙!╚°╔╞≈£≈∙)┬∙╟∙#╟∙├╞≈¢∙╛°╞û·